package chapter9;

/**
 * Created by Caesar on 2015/11/23.
 */
public class Reverse {
    public String reverse(String str) {
        String temp = "";
        for (int i = 0; i < str.length(); i++) {
            temp += str.charAt(str.length() - i-1);
        }
        return temp;
    }
    public String name(){
        return getClass().getSimpleName();
    }
}
